<?php echo form_button(array('id'=>'add-priorityoption', 'onClick'=>'openPriorityoptionsPopup()','name'=>'add', 'class'=>'btn blue', 'value'=>lang('escort_priorityoption_add_priorityoption'), 'content'=>lang('escort_priorityoption_add_priorityoption')))?>
<section class="item">
<?php
	if($priorityoptionList){
?>
		<table class="table-list">
			<tr>
				<th><?php echo lang('escort_priorityoption_id')?></th>
				<th><span><?php echo lang('escort_priorityoption_name')?></span></th>
				<th><span><?php echo lang('escort_priorityoption_price')?></span></th>
				<th><span><?php echo lang('escort_priorityoption_priority_percentage')?></span></th>
				<th class="actions"><?php echo lang('escort_priorityoption_actions')?></th>
			</tr>
			
	<?php
		foreach ($priorityoptionList as $priorityoption){ 
	?>
			<tr>
				<td>
					<?php echo $priorityoption->id ?>
				</td>
				<td class="collapse">
					<?php echo $priorityoption->priority ?>
				</td>
				<td class="collapse">
					<?php echo $priorityoption->price ?>
				</td>
				<td class="collapse">
					<?php echo $priorityoption->priority_percentage ?>
				</td>
				<td class="actions">
				<a class="button edit" onclick="return editPriorityoption('<?php echo $priorityoption->id ?>')" href="#"><?php echo lang('escort_priorityoption_edit_priorityoption')?></a>
				<a class="button delete" onclick="return deletePriorityoption('<?php echo $priorityoption->id ?>', '<?php echo lang('escort_priorityoption_delete_confirm')?>')" href="#"><?php echo lang('escort_priorityoption_delete_priorityoption')?></a>
				</td>
			</tr>
	<?php
		}
	?>
		</table>
<?php
	}else{ 
?>
	<p>
		<?php echo lang('escort_priorityoption_no_priorityoption')?>
	</p>
<?php
	} 
?>
</section>

<div id="basic-modal-content-priorityoption">
	<div class="popup-body priorityoption-popup">
		<section class="title">
			<h4><?php echo lang('escort_priorityoption_add_priorityoption')?></h4>
		</section>
		<form id="add-priorityoption-form" action="">
			<section class="item">
				<div class="form_inputs">
					<fieldset>
						<ul>
							<li class="even">
								<label for="priorityoption"><?php echo lang('escort_priorityoption_name')?><span>*</span></label>
								<div class="input">
									<input type="hidden" value="" name="priorityoption_id" id="priorityoption_id"/>
									<input class="required" type="text" id="priorityoption" value="" name="priorityoption">
								</div>
							</li>
							<li class="odd">
								<label for="priorityprice"><?php echo lang('escort_priorityoption_price')?><span>*</span></label>
								<div class="input">
									<input class="required" type="text" id="priorityprice" value="" name="priorityprice">
								</div>
							</li>
							<li class="even">
								<label for="priority_percentage"><?php echo lang('escort_priorityoption_priority_percentage')?><span>*</span></label>
								<div class="input">
									<input class="required" type="text" id="priority_percentage" value="" name="priority_percentage">
								</div>
							</li>
						</ul>
					</fieldset>
				</div>
				<div>
					<?php echo form_button(array('id'=>'save-priorityoption', 'onClick'=>'savePriorityoption()','name'=>'add', 'class'=>'btn blue', 'value'=>lang('escort_priorityoption_save'), 'content'=>lang('escort_priorityoption_save')))?>
					<?php echo form_button(array('id'=>'cancel-priorityoption', 'name'=>'add', 'class'=>'btn blue modalCloseImg simplemodal-close', 'value'=>lang('escort_priorityoption_cancel'), 'content'=>lang('escort_priorityoption_cancel')))?>
				</div>
			</section>
		</form>
	</div>
</div>